package com.zsoft.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zsoft.dao.TopicDao;
import com.zsoft.domain.TopicDomain;
import com.zsoft.service.TopicService;

@Service
public class TopicServiceImpl implements TopicService {
	@Autowired
	private TopicDao tDao;

	@Override
	public void add(TopicDomain t) {
		tDao.add(t);
	}

	@Override
	public void deleteById(Long id) {
		tDao.deleteById(id);
	}

	@Override
	public void deleteByExample(TopicDomain t) {
		tDao.delete(t);
	}

	@Override
	public void update(TopicDomain t) {
		tDao.update(t);
	}

	@Override
	public void saveOrUpdate(TopicDomain t) {
		// TODO Auto-generated method stub
	}

	@Override
	public List<TopicDomain> findList(TopicDomain t) {
		return tDao.getList(t);

	}

	@Override
	public TopicDomain getById(Long id) {
		return tDao.getById(id);
	}

}
